<?php

return array(
        'guest' => array(
                'type' => CAuthItem::TYPE_ROLE,
                'description' => 'Guest',
                'bizRule' => 'return Yii::app()->user->isGuest;',
                'data' => null
        ),
        'student' => array(
                'type' => CAuthItem::TYPE_ROLE,
                'description' => 'Student',
                'children' => array(
                        'guest', // отнаследуемся от гостя
                ),
                'bizRule' => null,
                'data' => null
        ),
        'professor' => array(
                'type' => CAuthItem::TYPE_ROLE,
                'description' => 'Professor',
                'children' => array(
                        'guest', // отнаследуемся от гостя
                ),
                'bizRule' => null,
                'data' => null
        ),
        'administrator' => array(
                'type' => CAuthItem::TYPE_ROLE,
                'description' => 'Administrator',
                'children' => array(
                        'student',         // позволим админу всё
                        'professor',
                ),
                'bizRule' => null,
                'data' => null
        ),
);

?>
